import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path:'/login',component:()=>import('@/views/login/LoginPage.vue')},
    {path:'/home',component:()=>import('@/views/layout/HomePage.vue')},
    {path:'/',
     component:()=>import('@/views/layout/LayoutContainer1.vue'),
     redirect:'/login',
     children:[
      {path:'/admin/service/ticket',component:()=>import('@/views/admin/Service/Ticket.vue')},
      {path:'/admin/service/session/:id',component:()=>import('@/views/admin/Service/Session.vue')},
      {path:'/admin/service/notice',component:()=>import('@/views/admin/Service/Notice.vue')},
      {path:'/admin/service/item',component:()=>import('@/views/admin/Service/Item.vue')},
      {path:'/admin/service/profile',component:()=>import('@/views/admin/Service/Profile.vue')},
      {path:'/admin/service/status',component:()=>import('@/views/admin/Service/Status.vue')},
      {path:'/admin/service/password',component:()=>import('@/views/admin/Service/Password.vue')},
      {path:'/admin/service/notices',component:()=>import('@/views/admin/Service/Notices.vue')},
      {path:'/admin/service/avatar',component:()=>import('@/views/admin/Service/Avatar.vue')},
     ],},
     {path:'/',
     component:()=>import('@/views/layout/LayoutContainer2.vue'),
     redirect:'/login',
     children:[
      {path:'/admin/review/works',component:()=>import('@/views/admin/Review/Works.vue')},
      {path:'/admin/review/avatars',component:()=>import('@/views/admin/Review/Avatars.vue')},
      {path:'/admin/review/covers',component:()=>import('@/views/admin/Review/Covers.vue')},
      {path:'/admin/review/signs',component:()=>import('@/views/admin/Review/Signs.vue')},
      {path:'/admin/review/contests',component:()=>import('@/views/admin/Review/Contests.vue')},
      {path:'/admin/review/profile',component:()=>import('@/views/admin/Review/Profile.vue')},
      {path:'/admin/review/password',component:()=>import('@/views/admin/Review/Password.vue')},
      {path:'/admin/review/notices',component:()=>import('@/views/admin/Review/Notices.vue')},
      {path:'/admin/review/avatar',component:()=>import('@/views/admin/Review/Avatar.vue')},
     ],},
     {path:'/',
     component:()=>import('@/views/layout/LayoutContainer3.vue'),
     redirect:'/login',
     children:[
      {path:'/admin/editor/interaction',component:()=>import('@/views/admin/Editor/Interaction.vue')},
      {path:'/admin/editor/profile',component:()=>import('@/views/admin/Editor/Profile.vue')},
      {path:'/admin/editor/password',component:()=>import('@/views/admin/Editor/Password.vue')},
      {path:'/admin/editor/notices',component:()=>import('@/views/admin/Editor/Notices.vue')},
      {path:'/admin/editor/avatar',component:()=>import('@/views/admin/Editor/Avatar.vue')},
     ],},
     {path:'/',
     component:()=>import('@/views/layout/LayoutContainer4.vue'),
     redirect:'/login',
     children:[
      {path:'/admin/super/competition',component:()=>import('@/views/admin/Super/Competition.vue')},
      {path:'/admin/super/createcompetition',component:()=>import('@/views/admin/Super/CreateC.vue')},
      {path:'/admin/super/notice',component:()=>import('@/views/admin/Super/Notice.vue')},
      {path:'/admin/super/profile',component:()=>import('@/views/admin/Super/Profile.vue')},
      {path:'/admin/super/password',component:()=>import('@/views/admin/Super/Password.vue')},
      {path:'/admin/super/avatar',component:()=>import('@/views/admin/Super/Avatar.vue')},
      {path:'/admin/super/notices',component:()=>import('@/views/admin/Super/Notices.vue')},
     ],},
     ] 
})



export default router
